import axios from '@/utils/axios'

export function getStudentPage(params) {
  return axios({
    url: '/student/page',
    method: 'get',
    params
  })
}

export function getStudentList() {
  return axios({
    url: '/student/list',
    method: 'get'
  })
}

export function createStudent(data) {
  return axios({
    url: '/student',
    method: 'post',
    data
  })
}

export function updateStudent(data) {
  return axios({
    url: '/student/update',
    method: 'post',
    data
  })
}

export function deleteStudentById(id) {
  return axios({
    url: '/student/del_' + id,
    method: 'get'
  })
}
